#
# MAINTAINER        it,meilele <it@meilele.com>
# DOCKER-VERSION    1.7.1
#
# Dockerizing Mariadb: Dockerfile for building Mariadb images
#

FROM       it/centos:7.2
MAINTAINER it,meilele <it@meilele.com>
ENV DATA_DIR /var/lib/mysql

# Install Mariadb
RUN yum install -y mariadb mariadb-server && \
    yum clean all

ADD mysqld_charset.cnf /etc/my.cnf.d/

COPY scripts /scripts

RUN chmod +x /scripts/start

EXPOSE 3306

VOLUME ["/var/lib/mysql"]

ENTRYPOINT ["/scripts/start"]

